def howdy(self, you):
    print("howdy, " + you)

MyList = type("MyList", (list,), dict(x=42, howdy=howdy))

ml = MyList()
ml.append("James")
print(ml)
print(ml.x)
ml.howdy("Jordan")

print(ml.__class__)
print(ml.__class__.__class__)
